<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('重录入列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="post-form">
                <div class="select-list">
                    <ul>
                        <li>
                            流水号：<input type="text" name="wsCode"/>
                        </li>
                        <li>
                            来电号码：<input type="text" name="fromTelA"/>
                        </li>
                        <li>
                            来电人：<input type="text" name="fromName"/>
                        </li>
                        <li>
                            地区名称：<input type="text" name="fmAreaName"/>
                        </li>
                        <li>
                            内容分类：<input type="text" name="dcntAname"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('mTelRcd:process:view')}]];
    var removeFlag = [[${@permission.hasPermi('mTelRcd:remove:view')}]];
    var datas = [[${@dict.getType('sys_normal_disable')}]];
    var prefix = ctx + "system/mTelRcd";

    $(function () {
        var option={
            url: prefix + "/reenterList",
            updateUrl: prefix + "/telHandle/{id}",
            method: 'post',
            sortName: "pkId",
            sortOrder: "desc",
            uniqueId: "pkId",
            modalName: "重录件",
            fixedColumns: true,
            fixedNumber: 1,
            fixedRightNumber: 1,
            pagination: true,
            pageNumber:1,
            pageSize:10,
            pageList:[10,20,50],
            columns: [{
                checkbox: true
            },
                {
                    field: 'wsCode', title: '流水号', align: 'left', halign: 'center', sortable: true
                },
                {field: 'liftTelNo', title: '分机号', align: 'center', halign: 'center'},
                {field: 'liftWorker', title: '接听人', align: 'center'},
                {field: 'fmAreaName', title: '地区', align: 'center', sortable: true},
                {field: 'fromTelA', title: '来电号码', align: 'left', halign: 'center', sortable: true},
                {field: 'fromName', title: '来话人', align: 'center', sortable: true},
                {field: 'fromTime', title: '接听时间', align: 'center', sortable: true},
                {
                    field: 'bkDate', title: '退回日期', align: 'center',
                }, {
                    field: 'yworker', title: '值班长', align: 'center',
                },
                {field: 'xsysDesc', title: '值班长意见', align: 'left', halign: 'center'},
                {
                    title: '操作',
                    align: 'center',
                    formatter: function (value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="processListWait(\'' + row.pkId + '\')"><i class="fa fa-edit"></i>处理</a> ');
                        return actions.join('');
                    }
                }]
        }
        $.table.init(option);
    });
</script>
</body>
</html>